package com.example.front.arrange;

import org.springframework.context.annotation.Import;
import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * EnableTaskArrange
 *
 * @author liming2
 * @date 2023/10/11 17:16
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import(TaskConfigProcessor.class)
public @interface EnableTaskArrange {
    @AliasFor("taskContexts")
    Class<? extends Context>[] value() default {};

    @AliasFor("value")
    Class<? extends Context>[] taskContexts() default {};
}
